//
//  LazyProxyViewController.m
//  ObjectCProject
//
//  Created by lvfeijun on 2021/5/21.
//

#import "LazyProxyViewController.h"
#import "LazyInitialization.h"

@interface LazyProxyViewController ()

@end

@implementation LazyProxyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    LazyInitialization *lazy1 = [LazyInitialization lazy];
    
    dispatch_after(3, dispatch_get_main_queue(), ^{
        [lazy1 say];
    });
    
    LazyInitialization *lazy2 = [LazyInitialization lazy];
    lazy2 = [[LazyInitialization alloc] initWithClass:[LazyInitialization class]];
    dispatch_after(7, dispatch_get_main_queue(), ^{
        [lazy2 say];
    });
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
